package com.lemon.cloud.interceptor.annotation;

import com.lemon.cloud.command.Command;
import org.springframework.stereotype.Component;

import java.lang.annotation.*;

/**
 * @author lemon
 * @return
 * @description
 * @date 2019-09-14 22:02
 */
@Inherited
@Component
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface PreCommandInterceptor {

    Class<? extends Command>[] commands() default {};

}
